package com.team.engine.permission.dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.team.engine.basedao.BaseEntity;

/**
 * 模块，操作类型，表实体
 * @author MengLH
 * @data 2010-8-4
 */
@Entity
@Table(name="t_module")
public class TModule extends BaseEntity {

	/**
	 * 模块Id
	 */
	@Id
	@Column(name="module_id", unique=true)
	private int moduleId;
	
	/**
	 * 模块名
	 */
	@Column
	private String name;
	
	/**
	 * 标识
	 */
	@Column
	private String flag;
	
	/**
	 * 路径
	 */
	@Column
	private String path;
	
	/**
	 * 父模块Id
	 */
	@Column(name="parent_module_id")
	private int parentModuleId;

	public int getModuleId() {
		return moduleId;
	}

	public void setModuleId(int moduleId) {
		this.moduleId = moduleId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getParentModuleId() {
		return parentModuleId;
	}

	public void setParentModuleId(int parentModuleId) {
		this.parentModuleId = parentModuleId;
	}
}
